import { constant } from '@/common/config'
import { getItemById } from '@/utils/methods'
const { ENTERPRISE } = constant
const getters = {
    getUserId: state => {
        let userinfo = state.userInfo
        return userinfo.id
    },
    isCompany: state => {
        console.log('isCompany')
        return (getItemById(state.treeData, state.areaTreeSelectedId[0]) || {}).type === ENTERPRISE
    },
}
export default getters
